-- GENERATED SPELL FOR [Vilebranch Ambusher] --


function spell0_7809(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7809', 0, 1)
end

function Sorts_7809(pUnit, Event)
local choix_sorts_7809 = math.random(0, 0)
if choix_sorts_7809 == 0 then
pUnit:RegisterEvent('spell0_7809', 1, 1)
end
end

function mob7809_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7809', math.random(1500, 3000), 1)
end

function mob7809_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7809_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7809_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7809, 1, 'mob7809_Action')
RegisterUnitEvent(7809, 2, 'mob7809_Leave')
RegisterUnitEvent(7809, 3, 'mob7809_Kill')
RegisterUnitEvent(7809, 4, 'mob7809_Die')
